package com.hacoc.common.events
{
	import flash.events.Event;

	/**
	 * 高级事件处理
	 * 可以传入任意参数对象
	 * 
	 * 
	 * 
	 */ 
	public class AdvanceEvent extends Event
	{
		public var request:Object;
		
		public static const LOAD_MODULE = "loadModule";
		public static const ADD_ITEM = "AddItem";
		public static const REMOVE_ITEM = "RemoveItem";
		//流程设计和流程查询视图切换
		public static const FLOW_QUERY = "flowQuery";
		public static const FLOW_DESIGN = "flowDesign";
		//拓扑图最大最小化
		public static const TOPO_MAXIMUM = "maximum";
		public static const TOPO_MINIMUM = "minimum";
		//拓扑图中的节点
		public static const CLICK_NODE = "clickNode";
		public static const DOUBLE_CLICK_NODE = "doubleClickNode";
		//弹出菜单项选择
		public static const MENUITEM_SELECT = "menuiItemSelect";
		
		//分页组件
		public static const PAGE_FIRST = "first";
		public static const PAGE_PRIOR = "prior";
		public static const PAGE_NEXT = "next";
		public static const PAGE_LAST = "last";
		public static const PAGE_GOTO = "goto";
		
		public static const FLOW_TEMPLATE_UNSELECT = "flowTemplateUnSelect";
		public static const FLOW_TEMPLATE_SELECT = "flowTemplateSelect";
		
		public function AdvanceEvent(type:String, request:Object = null)
		{
			
			//TODO: implement function
			super(type);
			this.request = request;
		}
		
	}
}